/* Do not modify this file directly. It is compiled from other files. */
//fgnass.github.com/spin.js#v1.3
/**
 * Copyright (c) 2011-2013 Felix Gnass
 * Licensed under the MIT license
 */
!function(t,e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Spinner=e()}(this,function(){"use strict";function t(t,e){var i,o=document.createElement(t||"div");for(i in e)o[i]=e[i];return o}function e(t){for(var e=1,i=arguments.length;e<i;e++)t.appendChild(arguments[e]);return t}function i(t,e,i,o){var r=["opacity",e,~~(100*t),i,o].join("-"),n=.01+i/o*100,s=Math.max(1-(1-t)/e*(100-n),t),a=l.substring(0,l.indexOf("Animation")).toLowerCase(),f=a&&"-"+a+"-"||"";return p[r]||(c.insertRule("@"+f+"keyframes "+r+"{0%{opacity:"+s+"}"+n+"%{opacity:"+t+"}"+(n+.01)+"%{opacity:1}"+(n+e)%100+"%{opacity:"+t+"}100%{opacity:"+s+"}}",c.cssRules.length),p[r]=1),r}function o(t,e){var i,o,r=t.style;if(void 0!==r[e])return e;for(e=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<f.length;o++)if(i=f[o]+e,void 0!==r[i])return i}function r(t,e){for(var i in e)t.style[o(t,i)||i]=e[i];return t}function n(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)void 0===t[o]&&(t[o]=i[o])}return t}function s(t){for(var e={x:t.offsetLeft,y:t.offsetTop};t=t.offsetParent;)e.x+=t.offsetLeft,e.y+=t.offsetTop;return e}function a(t){if(void 0===this)return new a(t);this.opts=n(t||{},a.defaults,d)}var l,f=["webkit","Moz","ms","O"],p={},c=function(){var i=t("style",{type:"text/css"});return e(document.getElementsByTagName("head")[0],i),i.sheet||i.styleSheet}(),d={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",direction:1,speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:"spinner",top:"auto",left:"auto",position:"relative"};a.defaults={},n(a.prototype,{spin:function(e){this.stop();var i,o,n=this,a=n.opts,f=n.el=r(t(0,{className:a.className}),{position:a.position,width:0,zIndex:a.zIndex}),p=a.radius+a.length+a.width;if(e&&(e.insertBefore(f,e.firstChild||null),o=s(e),i=s(f),r(f,{left:("auto"==a.left?o.x-i.x+(e.offsetWidth>>1):parseInt(a.left,10)+p)+"px",top:("auto"==a.top?o.y-i.y+(e.offsetHeight>>1):parseInt(a.top,10)+p)+"px"})),f.setAttribute("role","progressbar"),n.lines(f,n.opts),!l){var c,d=0,u=(a.lines-1)*(1-a.direction)/2,h=a.fps,y=h/a.speed,m=(1-a.opacity)/(y*a.trail/100),v=y/a.lines;!function t(){d++;for(var e=0;e<a.lines;e++)c=Math.max(1-(d+(a.lines-e)*v)%y*m,a.opacity),n.opacity(f,e*a.direction+u,c,a);n.timeout=n.el&&setTimeout(t,~~(1e3/h))}()}return n},stop:function(){var t=this.el;return t&&(clearTimeout(this.timeout),t.parentNode&&t.parentNode.removeChild(t),this.el=void 0),this},lines:function(o,n){function s(e,i){return r(t(),{position:"absolute",width:n.length+n.width+"px",height:n.width+"px",background:e,boxShadow:i,transformOrigin:"left",transform:"rotate("+~~(360/n.lines*f+n.rotate)+"deg) translate("+n.radius+"px,0)",borderRadius:(n.corners*n.width>>1)+"px"})}for(var a,f=0,p=(n.lines-1)*(1-n.direction)/2;f<n.lines;f++)a=r(t(),{position:"absolute",top:1+~(n.width/2)+"px",transform:n.hwaccel?"translate3d(0,0,0)":"",opacity:n.opacity,animation:l&&i(n.opacity,n.trail,p+f*n.direction,n.lines)+" "+1/n.speed+"s linear infinite"}),n.shadow&&e(a,r(s("#000","0 0 4px #000"),{top:"2px"})),e(o,e(a,s(n.color,"0 0 1px rgba(0,0,0,.1)")));return o},opacity:function(t,e,i){e<t.childNodes.length&&(t.childNodes[e].style.opacity=i)}});var u=r(t("group"),{behavior:"url(#default#VML)"});return!o(u,"transform")&&u.adj?function(){function i(e,i){return t("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',i)}c.addRule(".spin-vml","behavior:url(#default#VML)"),a.prototype.lines=function(t,o){function n(){return r(i("group",{coordsize:f+" "+f,coordorigin:-l+" "+-l}),{width:f,height:f})}function s(t,s,a){e(c,e(r(n(),{rotation:360/o.lines*t+"deg",left:~~s}),e(r(i("roundrect",{arcsize:o.corners}),{width:l,height:o.width,left:o.radius,top:-o.width>>1,filter:a}),i("fill",{color:o.color,opacity:o.opacity}),i("stroke",{opacity:0}))))}var a,l=o.length+o.width,f=2*l,p=2*-(o.width+o.length)+"px",c=r(n(),{position:"absolute",top:p,left:p});if(o.shadow)for(a=1;a<=o.lines;a++)s(a,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(a=1;a<=o.lines;a++)s(a);return e(t,c)},a.prototype.opacity=function(t,e,i,o){var r=t.firstChild;o=o.shadow&&o.lines||0,r&&e+o<r.childNodes.length&&(r=r.childNodes[e+o],r=r&&r.firstChild,(r=r&&r.firstChild)&&(r.opacity=i))}}():l=o(u,"animation"),a});